{extend name="./public/base"/}
{block name="alt"}用户管理{/block}
{block name="alter"}修改用户信息{/block}
{block name="title"}BangBang修改用户信息{/block}
{block name="main"}
	<div class="modal-body">
						<form class="form-horizontal" role="form" action="{:url('doupdate')}" method="post" enctype="multipart/form-data" >
{volist name="userupdate" id="us"}
<input type="hidden" name="uid" value="{$us.uid}" >
<div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">用户名</label>
    <div class="col-sm-4">
      <input type="text" name="uname" class="form-control" id="inputPassword" value="{$us.uname}">
    </div>
  </div>
 
  <div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">性别</label>
    <div class="col-sm-4">
      <select class="form-control" name="gender">
      	<option value="">{if condition="$us.gender==0"}男
      						{else/}女
      						{/if}</option>
      <option value="0">男</option>
      <option value="1">女</option>
    </select>
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">出生日期</label>
    <div class="col-sm-4">
      <input type="text" name="birthdate" class="form-control" id="inputPassword" value="{$us.birthdate}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">邮箱</label>
    <div class="col-sm-4">
      <input type="text" name="email" class="form-control" id="inputPassword" value="{$us.email}">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword" class="col-sm-4 control-label">头像</label>
    <div class="col-sm-3">
      <input type="file" name="upic" class="form-control" id="inputPassword" >
      <br>
      <br>
       <img src="__STATIC__/upload/{$us.upic}" width="70px" height="70px" >
       <span>原头像</span>
    </div>
  </div>
  {/volist}
  <button type="submit" class="btn btn-primary">SAVE</button>
</form>
         	 	</div>
{/block}